Pull out appBase variable.
Clean up spaces.
Abstract add livereload middleware function.