Refactored jsonpointer.py, added tox.ini

And fixed most of flake8 errors(except 'lines too long' errors where its ok)
I would review this pr not unified :)
Hope it helps!
Please revert the docstring formatting changes as they are not according to PEP8 (http://legacy.python.org/dev/peps/pep-0008/#documentation-strings)