Some fixes of full autoconfiguration with software cam and fix for unicast http messages [reopened]

My sincere apologies for the last pull request, I was commiting at work and had broken author of my commits.

Fix for full autoconfiguration is for situation when on multiplex psi tables are some ghost channels that have some of the pids of channels that are vaild. It was making mumudvb crash because we link oscam index from ca_pid and ca_descr with oscam channels based on pids comming in ca_pid messages and mumudvb was getting ca_pid messages with the same pid for different channels.

Fix for unicast http messages amends situation when message is too long to be handled in one write to socket. Bug can be observed when reading state.xml from different unit than this running mumudvb, because on loop-back write length limit I believe is higher than on real nic.