Updates for latest janus

Added janus_flatten_gallery, changed janus_search to work on janus_flat_gallery's, janus_enroll no longer writes to file on disk.
@jklontz @sklum Implementation of latest janus changes.
This shouldn't happen here. It's up to the user to free the gallery after this call.