Implemented authorization.
Fixes #2
Initial support for TestNG REST integration testing.