Fix signal/slot connections, refactor a bit.
svn path=/branches/kdepim/enterprise4/kdepim/; revision=868517