Updated elastic search to use refs and return them in searches
Added tests for calendar json