General improvements

Added ability to set 'echo' function.
Added ability to have raw JS in PHP.
Added 'var' to new function variables to avoid contaminating the global
scope.
Strings (FALSE, NULL) actually being converted to JS equivalents now.
Attempted to tidy up naming for functions to get the inPlace/postClass/
etc JS. Almost succeeded, but it's still ugly.
Added Trait example.
Figured out how to do tests, added tests to two files.
GitHub failed again - please see previous commit for comments.