Add edit

Added security to /add and /edit views.  Fixed failing pytests and implemented lettuce tests.