Remove unneeded functions

Code clean up and remove stream methods (use encoding/json directly
for streams and use FromInstance() if functionality is required).
In GetPath: use for i := range instead of for _, i := range
            to optimise compiled code.