Add setup script and init.d script

Also, some pep8 fixes