Web: add filtering options to job list page

Altered the state listing in JSAProcState to be an ordered dictionary
so that we can display the state options in the correct order.
The STATE_ALL attribute is now a tuple rather than a set as Python
doesn't have an ordered set class.