Refactored abstract controller
Added default rest actions