Fix #565: Move corejslib.js as a resource for the tools.

This simplifies the tools API.
Add full support for projects requiring DOM

- Fix #442: Add Phantom.js environment
- Add a setting whether a project requires the DOM
Send printlns to the console, not the logger.
Merge pull request #586 from sjrd/move-corejslib

Fix #565: Move corejslib.js as a resource for the tools.
Merge pull request #585 from gzm0/phantom-js

Add full support for projects requiring DOM
Merge pull request #587 from sjrd/fix-console-log-output

Send printlns to the console, not the logger.
Version 0.5.0-M1.