Works with typescript 0.8.1-1
Revert "Works with typescript 0.8.1-1"

This reverts commit 07ff5a700fcd075221cf3adbeabc72eb42d5e764.
Fixes #5 by providing Error objects on API errors