Better frontend configuration via JSON
Clean API for accessing current_user