moved some init methods from app to base. set up 500 response system for catching exceptions.