Add support for logging in phantomjs process
Add defaults function to utils
Remove path from utils
Restore arguments symmetry
Cleanup cruft
Extract json data from stdout

PhantomJS does not support sending process messages so stdout must be used to get the results of the user script