Added unit test library and authenticator tests

The test framework is nodeunit.