user metrics test cleanup
user metrics: convert count by app to pure ruby
user metrics: add licensing, non-licensing segments
Merge pull request #125 from alphagov/metrics-segmenting-users

User metrics: segmenting users by licensing, non-licensing