[Fix bug 966740] Upgrade tastypie to v0.11.0

* Remove hardcoded tastypie directory under vendor-local/lib/python.
* Add tastypie as a submodule.
* Upgrade tastypie to latest release v0.11.0.
* Security fixes in tastypie prevent XSS under /api.
Remove restricted field from RepResource. Enable upstream caching.