API: Added better error handling, make some more api calls similar to statusnet