Convert FFI to Executable gem and other refactors
This MR does quite a few things
- convert ffi gem to executable gem
- add flatten function
- add replicas in deployment
- some other refactors
We have tested the integration of this gem in the GitLab monolith and can thus close gitlab-org/gitlab#391209 (closed)
Edited by Vishal Tak