Moved contact stuff to its own package, and started the configurations dialog.

Also did some minor tweaks.