Various memory optimisations across the stack.

Mainly replacing hton and hton with functions and copying small arrays
using memcpy instead of for loops.
Correcting problems with new ntoh and hton
Adding support for SliceKit in the demo app