Janus_evaluate search and verify utils

@jklontz @sklum Please review
Template id and template bytes are serialized in the flat_gallery.