Some production fixes and separated out wsgi into dev and prod versions