Combined api user-functions. Cleanup. Flash-messages on client.