Potential fix for one of the intermittent Travis failures

Added convertPermanences to transfer permanences from one SP to another. Use this function to help resolve drift in permanences.