Added API request and error classes

I'm too lazy and sleepy to add tests right now.