Added support for REST api using django-restframework.