pagination added and reworked a bit
rearranged functions so that they come in the right dependancy order
using a local brand of hiccup that can handle dropdowns with multiple selects