File sender thread, XML encoder

Implemented thread that periodically sends all unsent actions from
database. Implemented XML encoder for actions encoding.