changes to schema
add duplicate function to rails admin template and email layout
before action to authorize goals in apicontroller