adds realtime script injection/browser reload, basepath as webpageArg and general fixes