This socket code makes single instance a mandatory feature assuming if libunique is not available we can use sockets. A bit of refactoring of MidoriApp is involved to make the command logic independant of the nature of the instance handling.