Added tableToJSON library to save contracts

Saving contracts dynamically with fancy JS calls
Merge branch 'master' of github.com:IPPETAD/agrilytics
Fixed buttons on contracts
Merge branch 'master' of github.com:IPPETAD/agrilytics