Add factories to sbt plugin for PhantomJSEnv and NodeJSEnv

This hopefully simplifies build definitions that need to tweak some
command line options or just force a given environment.

At the same time, this also fixes #1302 (use proper class loader for
PhantomJSEnv in our CI).
Merge pull request #1309 from gzm0/env-factories

Add factories to sbt plugin for PhantomJSEnv and NodeJSEnv
Fix #1308: Auto import RuntimeDOM builder

Rename former RuntimeDOM to RuntimeDOMDep to avoid import conflicts.
Merge pull request #1310 from gzm0/auto-import-runtime-dom

Fix #1308: Auto import RuntimeDOM builder