fix #1 Performance issue fixed

Some updates are also included in this commit, in order to have the sample working with the 1.6.0, as it's also improving performances. 

The main issue is due to https://github.com/ariatemplates/hashspace/issues/176.
This commit works around the complex json config by externalising the jsons in functions.