Allow passing compile options

We need to be able to use our custom escape sequences, and that was not possible before. this commit maintains the previous interface, while extending it to allow a templateSettings key which gets passed through to _.template