RestClient-based
Tests and major refactor

[#16]
Merge pull request #18 from seejohnrun/rest-client

Rest client