various improvements to models and api. Also upgraded tastypie to latest alpha