Use constants for join request types and better functions to check it

refs #1310
Better param handling for join requests

Allow users to set a role when accepting a request, but only for a few cases.

refs #1310