[Fix bug 966740] Upgrade tastypie to v0.9.15.

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