Please intergrate as you see fit

The first two commits a trivial fixes.

The latter two go about removing too hairy javascript code from the view in favor of static form submission with redirect and flash, also the last one fixes a rare-triggered problem with dependency loading ("stack level too deep" could be hit at start or at certain code paths,) adds a project_email resource route, and makes code a little nicer.

--
Alex