Document domain package.
Fix id resetting state exception and use int instead of lomg.
Add some REST resources.
Use shared database connection.
Implement users pain text resource.