cleaned up imports
moved check_cuda to cuda convnet and made its error message customizable
for features other than maxout
factored out some of the initialization from maxout so it's useful for
other convolutional layers
fixed some bugs in the refactor