Improved upon dependencies.

- if gnumpy is not available, use numpy
- do not depend on theano
FIX: sparse init only worked for gnumpy