separate lib and mocha integration

make it possible to just require the lib thru index.coffee
explicitly init with dom window
Merge pull request #4 from natlownes/lib-separating

separate lib and mocha integration