Add account locking. Authomatically activated when withdaw throws an exception.
Also move Blocknotify into a separate file.