Fix most deprecation warnings and remove hacky nohup code
Merge pull request #459 from Arcterus/deprecation

Fix most deprecation warnings and remove hacky nohup code