keys table has been renamed to castle_gates_keys
use subselect instead of join for with_access queries

it's faster and simpler
better comment for subselect_for_holder_and_gates

[ci skip]
Merge pull request #83 from Crabgrass/bugfix/4351-faster-directory-query

Bugfix/4351 faster directory query
only sort by login / name as we only display these
fix and clean up alphabetized for groups and users
only use keys for the matching castle_type
Merge pull request #82 from Crabgrass/bugfix/3117-directory-order

Bugfix/3117 directory order
Change how we split the string input to the invite form, so white space and commas will not considered possible entities.
Merge branch 'develop' into bugfix/4328-invite-error
Quick tweak in case there are blank strings that sneak in as an entity.
Merge pull request #84 from Crabgrass/bugfix/4328-invite-error

Bugfix/4328 invite error