Add programme_id and public_access to search.

- Use elasticsearch filters
- Update elasticsearch when we post, put and delete devices, entities
  and profiles
- Replace :id with :<resource>_id in the API
Render entities.
Add get-by-id to entities search.
Change :id to :project_id in projects.cljs
Merge pull request #158 from MastodonC/feature/permissions-for-elastic-search

WIP: Feature/permissions for elastic search