added variable n arguments for gallery
added rest client gem
added indexer for elasticsearch
lots of changes