various small fixes for js libraries
- fixed page contract in case a non-default version is downloaded
- provide always an argument "-version" to resource_info procs
- obtain current version number always via resource_info.installedVersion
(it refers to CDN and locally installed version)
- pass always versionDir via resource_info to ::util::resources::download
- always obtain version_dir from resource_info