moving json_decode to tools
make cache set/get static
instantiate classes, use variable built from config for endpoint
adding get functions to prototyper class, they handle exceptions