Port ubjson.lua fixes to ubjson.js

See the previous commit for details.
Radio/runtime WIP (Fixed memory issues)
Fix 16 to 64 in radio protocol yaml (temp)
Smartsensor stack size change (WIP)