Address PR feedback - separate out middleware from microsite logic, shorten up names, etc.
update test to import right thing
move over enable_microsite() to startup.py
address PR feedback
improve iterators and add a method comment