Clean up retrieval of sequences and views in controller
Move debug code around
Back to outputting a simple demo but at least the MVC parts are separated