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.
Ah, good point, thanks!