moved js/css live build into own middleware; now respects config.dev flag