JC: changed from put to get in routes for search/stat results. Refecotring views and models.