add api,persistent base controllers
add User class
add persisnt db base controller
add singleton pattern to main Application class