Using jQuerys Deferred patterns for better ajax handling and UI updating. Fixes Issue #16
Password reset functionality implemented. Tidied up loading modal too. Fixes Issue #14