Sp perm init test

Added a compatibility test to check for equivalent permanence initialization between the Python and C++ spatial poolers as suggested by @breznak.

Work towards numenta/nupic.core#159. 
Fixes #1225.