Front-end view fixes:

* Follow naming conventions
* Faster sample retrieval
* Pagination on the samples page
* A bunch of changes to the view functions
API-level fixes for GET requests
Save related field counts on Sample and Subsample
Rename view functions for sample and subsample list
Merge pull request #16 from kristallizer/api

View fixes, and store counts of related fields on Sample and Subsample