Change return code for require_admin
Remove deprecated code
Remove unnedeed code
Add require_auth helper
Add authorization