CPU only RbmStack

Cleaned up and stripped out GPU code and comments. This version seems to
work and is CPU only. Could be basis for reintegrating GPU code in a
cleaner way.
CPU + GPU

Not debugged...