Move registry check from main.cpp to SelfTest framework
svn path=/trunk/KDE/kdepim/kleopatra/; revision=805038