redesign interface to use instances and allow configurable credentials
fix httparty interface
merge instances branch