Refactored edit/new
Implemented _optional_ auth.