Warn users before leaving unsaved changes in admin

Fixes #68
Clean up related topic editing in admin

Don't include autocomplete field when rendering widget; rather, add it
via javascript on page load.

Along with additional javascript to implement that, refactor things a
bit to make things more legible after the frenzy last week.

Addresses #68 some more.
Fix typo in document template
Update bootstrap to 2.0.4; fontawesome for icons
Update admin.py js directory
Convert zotero json to csl json from the client

Before this, we used an ajax call, which was not really ideal. To do
this just within JS, this uses the map created by the z2csl project
(https://github.com/aurimasv/z2csl)
Render all errors on document admin page
Autocomplete Zotero archive field again
Add wysihtml5
Enable wysihtml5 in note admin
Enable wysihtml5 for documents; add base admin css
Render formsets on validation error

I had (stupidly) given formsets different names when the request type
was POST. This is the problem with implementing an all-custom admin,
then.
Make sure archive autocomplete is always triggered

It was only doing so on page load, leaving out situations where someone
added new zotero information, which is done by adding to the DOM.
New widget for scans that accepts multiple files

If a user's browser allows it, the file input of the 'extra' field in
a scan formset will contain the attribute "multiple", allowing the user
to upload multiple images at once. Everything will work as before if
that is not supported.
Clarify a comment
Fix a few bugs for note forms

1. The custom save method that added the last updater's affiliation to a
model's affiliation didn't work, for reasons stated here:
http://stackoverflow.com/questions/1925383/issue-with-manytomany-relationships-not-updating-inmediatly-after-save
This problem is pretty frustrating and will take some thought to fix.
For now, I've just gone back to determining an object's affiliation
whenever it's loaded. ah well.

2. Add decorators to admin views so that revisions are created when
they're saved.

3. Fix a typo on the note form. How long has that been there for? oops.
Get adding documents inline on note pages working
Start on new note section editing interface
Start cleaning up my javascript mess

Most importantly, all zotero stuff is in one file, which creates a
jquery plugin (zotero.jquery.js). It's built from three other files; in
the future need to deal with automating all that stuff.
Continue working on note-section interface

Got adding a document inline working well now; cleaned up javascript
some more