[#141] Create & edit delegatable permissions

Apart from code changes required to get this feature working, there are changes to make the controller code more railsy, specifically the code around error handling.