fixed some bugs with the h2 db creator, fixed some bugs in the gateway management UI, encrypted gateway REST auth credentials in the db