Add requires_login_403

This decorator is like requires_login, but throws a 403 rather than
redirecting. It's good for pages that take POST data.

Signed-off-by: Casey Dahlin <casey.dahlin@gmail.com>
Fix method rewriting

The old method rewriting code tried to do a bunch of things to the request that
aren't allowed. This one works.

Note that the request still has to allow the POST method or we never make it to
the rewrite, so we have to filter for ourselves.

Signed-off-by: Casey Dahlin <casey.dahlin@gmail.com>
Make element template modifyable

The decorator now takes a keyword argument if needed so we can change the
element template.

Signed-off-by: Casey Dahlin <casey.dahlin@gmail.com>
Add hidden_element function

This function lets us create a hidden element. It is not a decorator since we
need no validation code. Just takes a name and a value.

Signed-off-by: Casey Dahlin <casey.dahlin@gmail.com>
Add delete button to alias form

Signed-off-by: Casey Dahlin <casey.dahlin@gmail.com>