Fix most Elemwise tests and all blas tests.
Stop using init_dev.device.
Fix the supports_c_code test
test_neighbours passes.
test_nnet passes.
Fix elemwise perform.
test_scan passes (this also fixes problems with subtensor, which is used by scan).
Convolution tests pass (slowly)
test_opt passes.