Refactored repl a bit, and added processExit hook
Better sandbox error handling.
Login errors were broken
RPC errors now show a notification, if ui/notifications is injectable.