Adds a APIError type for more robust error handling
Merge pull request #25 from patronmanager/master

Adds an APIError type to carry raw API response details