Sender, XML, DB corrections

Bug fixing, some corrections. All actions can be now stored into DB,
retrieved from DB. Sender perodically checks DB and sends all unsent
actions to server.