Add delete function and combine message lookups

* Message functions using lookup are in one function
* Delete function just returns json for now
* Added/fixed tests
Replace template backend

* Replaces Text::Caml with Text::Xslate
* Updates templates
* Adds some util functions for templates
* Updated dependencies