Added threaded file/console logging class

Refactored prosthesis data packet boxing and unboxing logic. It's now
much easier to serialize and deserialize data. Much much less diplicated
code. Almost ready to start hooking this into something!