DO NOT MERGE - WIP: Address PR feedback - separate out middleware from microsite logic, shor...

...ten up names, etc.