Code cleanup

Cleaned out Data Access Layer in preparation for RavenDB. Let's see if
it plays nice with my other libraries.
(Broken) RavenDB added as data source

Test build with RavenDB as a backend data source. Doesn't appear to
work. Hangs when user navigates to Administration -> Machines page.