Location facets

Delivers: https://www.pivotaltracker.com/story/show/51597121

Also includes a bug fix for the sort dropdowns, and edits to backend factories allowing them to be used in a client context (for example, to use factories in an irb session).