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').
Merge pull request #54 from sacha-/patch-4

Update XBee-API1.js