Fix #577: Make (5L: Any).getClass return java.lang.Long.
Merge pull request #578 from sjrd/fix-long-getclass

Fix #577: Make (5L: Any).getClass return java.lang.Long.
Fix #571: Fix line offset when lazy-loading files in Rhino
Fix #581: Fix off-by-1 errors in SourceMapper
Merge pull request #582 from gzm0/fix-source-map

Fix source map
Add JS dependency tracking via manifests.

A JS_DEPENDENCIES manifest file is added to each configuration
classpath and exported in JARs. This way, libraries may declare what
exact JS files should be included from a WebJar they depend on. (Or
what JS files they provide themselves should be included).

Example usages can be found in the build definitions for the
jasmine-test-framework and the testing example.

- This completely removes `importScripts` and fixes #457
- The project's classpath is fully available even in the post package
  stages. This is necessary to allow for discovery of dependency
  manifests and JS libraries the project depends on.
wip phantom

Conflicts:

	project/ScalaJSBuild.scala
	sbt-plugin/src/main/scala/scala/scalajs/sbtplugin/env/nodejs/NodeJSEnv.scala