fixed up default pref sanitiser due, broken in last commit due to phps borked internals
tested backup and restore routines in upgrade script, corrected a few errors, added full exception handling
fixed some minor errors in upgrade script, modified readme and upgrade instructions