Adding 'search' to `/earn` and `/explore` filters

Resolves #616
Fixing `getBadges` test to allow for `search`
Merge pull request #663 from andrewhayward/search

Adding 'search' to `/earn` and `/explore` filters