Fix installation issues

* Fix setup.py so the package will `pip install` correctly in a pristine virtualenv.
* Make .gitignore ignore *.pyc, pip egg directory