modifies compile process to encapsulate browser target better
abstracts target specific implementations to ./lib/shims directory, fixes mocha.js in browser