added some patches to make new implementation of spatial pooler comply with old one
Merge branch 'master' of github.com:numenta/nupic

merged changes.
fixed inconsistences in trimming associated with orphan columns
new spatial pooler functional and aligned
ready to merge
matched potential pool initialization of old and new spatial pooler implementations
Merge branch 'master' of github.com:numenta/nupic into integrate

merged spatial pooler
Merge branch 'master' of github.com:numenta/nupic

merge
Merge branch 'master' of github.com:numenta/nupic

merge
fixed spatial pooler tests to deal with new raisePermanences occuring as part of every permanence update
reverted changes in SPRegion and CLARegion
removed shared inputs and orphan column treatment
Merge branch 'master' of github.com:numenta/nupic into newsp

merged changes
implemented columns that have never learned can't win unless learning is on
restored CLARegion.py SPRegion.py to use old spatial pooler
added comments to flat spatial pooler constructor
fixed indentation issue
Merge branch 'master' of github.com:numenta/nupic into newsp

merged changes from upstream
converted tabs to spaces
style changes. added docstrings