Server side changes.

- Added sbt-scoverage to determine test coverage.
- Server refactoring for domain objects.