Fixed numerous bugs in the Stack Exchange API