Added base controller class and its corresponding spec.