Migrate old Maxclient to Rest Maxclient
Method to pretty print error responses
Fix portrait creation when specifying user id