Uhh, redid some stuff to get this to work with heroku, hopefully.