Utility functions used by Ganelon - but independent from compojure/noir/ring