Replaced global timer

Now every Share has its own timer running in the mainRunloop to
schedule the commitAndBegin-Function. This should use a little less cpu
because it only tries to commit changes to the database, when they
actually have happened.