Add tests for the RPC system

And also change the format of log messages that were troubling admins.
Added license info and use strict to javascript.