Store subcalls & optimize gsub!
Merge pull request #178 from korczis/rest-factory

Store subcalls & optimize gsub!