Use express app with custom middleware to support history location [Fixes #74]