add grunt-karma dependency
configure karma
integrate karma tests
make require configuration reusable for runtime and testing
add a sample karma spec
remove obsolete test files
update require js configuration to play nicely with build