Fixes #1259 : Change function definitions to remove redundant calls to connections.cellsForColumn

This is slightly cleaner and helps me subclass temporal_memory for different learning rules
Remove extra whitespace