Potential fix for intermittent travis failure

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