Move "edit metadata" buttons in panel headers on legislation pages.
Fix permissions management in mako templates to avoid non-logged user to call edit conroller.