Move protocol tree indexing to omx-core module + small stuff

- Move protocol tree indexing to omx-core module
- Revert changes in elasticsearch
- Fix: download in protocol viewer
- Resolve compiler warnings