Update XBee-API1.js

Rewrite, use Uint8Array then ever possible. Needs a lot less memory now. 
Funtion strtobytes no more needed, we can use value.set('Text').