Reduce load on DB for license upgrade check

Merged Stan Hu requested to merge (removed):license-check-performance into master
  1. Only check if the user is an admin
  2. Cache the active user count for an hour

Helps gitlab-com/operations#298