add pack.h - helper functions for bytearrays

in the hope that it might be useful. see the file itself for documentation
NOTE: not tested on tinyOS yet