Added a publish profile and fixed the web.config files.