added implementation for decoding state
initial commit library for encoding/decoding states
use bundle's own state library
updated dependencies