Main Application Class, handles routes