Added a cmd-line only demo. Integrated region topology constants in cl source.
Spatial pooler: device-side region initialization
Spatial pooler: reset bad synapses every N iterations
Minor fixes to demos