Minor refactoring changes. Added an App class to handle redirects and page alerts. Fixed some of the unresolved issues.