Complete server api for identity management based on tokens, front end and app example