created debug mode

closes #175
merged elastic client into elastic service
debug service only logs when enabled
added debug lines to fetch version call