Adds context, authentication and tests

* Context and authentication framework
* Breaks out unit tests for serialization and resource logic