Added a domain module, fixed some issues with the build that prevented heroku deploy.