Add declarative_authorization and intial work on auth rules
update layout, add permission checks, initial work on edit edc