Fix persisting, name-handling. Change some HTTP response codes.