just make server a middleware creator instead of defining method on store
support custom base and mount urls in browser