Added a view helper

Created a view helper that either displays a pulldown using SELECT, or a
list using UL. Also added a composeUrl function, which is used in the
view helper to create the URLs needed to go to. The redirect routine in
the resource plugin also uses composeUrl now.