Refactored login and initialize commands slightly and added a check for requests to www URLs and redirect those requests to the bare domain.