added some controllers

added base controller and accounts controller.js