Controller support for in/outcode filters and order by
Merge branch 'milestone2' of https://github.com/stuartstevenson/es-hackathon into milestone2