merge permissions from plugins
tests for invite codes
apply configured permissions when connection is authorized
allow master to create invite codes and give them out to friends
use map-merge, because it handles arrays how I want
tidy
Merge pull request #29 from dominictarr/invite

invite codes & plugin permissions