Reworked split and join permissions check to allow extra cases
like the skeleton being under the user's area,
and polish some areas, i.e. structuring checks from cheap to expensive.
neuronstagingarea: clearing the selection must remove all from webglapp.
Merge pull request #556 from perlman/master

Calculate the number of zoom levels using max rather than min dimension.