Added basecontroller and modified front controller. All controllers now
extend BaseController and inherit all of its functions