user password history now saves the correct value + cleanup
All UI delete routines cleaned up + create/update cloud account.
adding an if section works again
UI GetItems routines cleaned up.
Overhaul of remaining $.ajax calls in javascript to use common function.
further cleanup of extraneous "if error then foo", etc.