Change node exports to use module object

- Required for CasperJS functionality
Add CasperJS tests
Convert UI test case to Coffeescript

Close #30.