code auto reformat
added additional checks when inviting a user
made MemberResource more REST conform
fixed transition check