Re-implemented 'get_middleware()' as suggested, without changing the Server constructor and now no longer encountering hangs
Post-pull commit
Merged upstream
change pointer to reference; fix up spaces
Merge branch 'acron0-get-middleware2'