Remove some debugging output.
Helper that finds tesla_update_state().

This also refactors out the construction of the 'struct tesla_key' type.