Use DjangoJSONEncoder instead of a custom Encoder

It's better to use built-in django JSON encoder, it's there since django 1.3 so doesn't need backwards compatibility code.

Fixes #324
Use json library instead of simplejson

Its better to use the built-in json library.

see https://github.com/django/django/blob/1.5/django/utils/simplejson.py
Fixes import priority
Updated #148 so it can be integrated
Added pydot compatilibity, closes #307
Merge pull request #381 from camilonova/add_pydot

Added pydot compatilibity, closes #307
fix style error
auto select pygraphviz or pydot library
Merge pull request #356 from camilonova/patch-1

Use DjangoJSONEncoder instead of a custom Encoder
Merge pull request #379 from camilonova/more-imports

Updated #148 so it can be integrated
fix indent error
Merge branch 'master' of https://github.com/django-extensions/django-extensions