Restructure the Controller Servlet class.
Add error messaging architecture.