add `opts.compiler` allows third party to override the internal compiler

I read the comments that @lazd made in other posts. Here is my version of rolling out the User custom compiler. 
I did not update the README and it was copied from Ember.js example. I will do the update later.