Added pre-sorting by service functionality and also health check to AccountService.
Miscellaneous changes including turning on Debugging.