Made various changes to allow application to be served from production environment.