Switch over to the v2 API.
Remove trailing whitespace.
Some fixes to the code all around and make sure to initialize cublas along with the device.
Make it compile on cuda < 6.0 and add fix 0-size cases.
Stop adding -L/usr/local/cuda/lib{,64} as argument to nvcc.

This was never needed and also causes the errors with fatbinwrap_65.
Merge pull request #1966 from abergeron/cublas_v2

Switch to cublas v2
Merge pull request #1968 from abergeron/fix_fatbin

Stop adding -L/usr/local/cuda/lib{,64} as argument to nvcc.