Revert previous commit to attempt and fix "Your emails do not match"
error on user registration.

This reverts commit 8e54cc1e5a6d864cff60e9f027afa77e5b4cdd08.
Fixed both form leaking and emails didn't match errors.

Also added a testcase.
Removed some unnecessary log statements.
Made test for is_loaned_out more robust and added some log statements.
Implemented admin dashboard.
fixed query used to compute summary of imports on a day.
Don't import serials.

The charcter position 007 in MARC leader is 's' for serials. Updated the
importapi code to ignore them.

(tx Karen Coyle for clarification).
Fixed the query to find recent scans.

The new query tries to find all scans which are updated/added on the
given date and have been scanned at most 2 months ago.
Fixed error in import dashboard.
Fixed the error in handling failures on import.
fix
Fixed small issues and improved error reporting for imports.
Added new API for importing IA items.

The new API takes care of the following in addition to what was done
before.
* if openlibrary field is specified in the metadata, it'll be linked to that editon
* covers are added at the time of import
* better error reporting
Return valid JSON from import-ia api.
whole lot of improvements to importer.

* Added a core module `impoter`
* move the import stats to the importer module
* moved the core import data structures from manage-imports.py script to importer module
* ability to add items to import queue from admin panel
* various bug fixes
Added import rate and ETA to import dashboard.
Also show count of pending items in the dashboard.
Removed the dev hostname added for testing.