Added tests and dependency injection via Guice. Also re-factored the service functionality into a POJO service.