added RestResult class to provide validation
added ApiCall class to make calls easier