Fix galaxy wait to handle Galaxy's new logic wrt dataset states

Newer versions of Galaxy given a history state in 'queued' even if
individual datasets are in an error state.  This commit modifies the
wait method by importing logic from bioblend.objects to examine the
individual dataset states and exit when any are in error or all are out
of the "pending" states.
used common way to represent individuals code
bug fix
Merge branch 'platewells2individuals' into develop
improved sessions handling
added methods to switch between groups and to check groups leaders and members
improved checks when moving objects to common space
minor fixes
added permissions support
added doc
move EHR table to common space after its creation
Merge branch 'permissions' into develop