Refactor mozconfig.py

* Add initial documentation
* Add TODO items
* Remove unused optparse module
* Make Python 3 compatible
* Remove some redundant Python coding practices

Related with #1.