Refactored code to no longer use unions or packed structs.
Instead manual unpacking of data is used. There were problems with the old code on some PICs that were fixed by this refactoring.
The Packing library is also now used to do the byte packing/unpacking.