added maintenance mode

used code of #2
added var $showMaintenance as route middleware