Authentication WIP and integration tests

Added authentication infrastructure, added integration tests for Posts DAL.