Cleaned up ManagementService and ManagementRepository so it matches
current architecture.

Added password hashing to authentication protocol.

Applied Dave's fixes to fix 404 errors.