made the function decorators return anonymous functions because flask seems to be concerned about actual function names. Also fixed some stuff with UUIDs in the Users model