Binary (De)Serialization

Based on BLODS - Binary Lua Object (De)Serialization
(https://gist.github.com/Yevano/e4a2f35cda144a9f9667)