Use Compiler hooks and $compiler.init for init
Added some tests (tape, testling, travis-ci)