Fixed a bug where a misbehaving server would cause pastyclient-node to
send undefined errors
Fixed wrong API endpoints (oops)