add permissions to features and add logout

remove global service as it only provided an extra layer not really an
hiding.