Fix json encoding, fix securitymanager restarting
github saving works