Refactor views, replace states with a stack view

Another iteration of clean-up of view code.
Support data as request parameters in the web-service call