Added log messages to compile.js. Updated Brightline compile() and load() to use function instead of object.