Remove use of old numpy api.
Use current numpy c-api
Use new Numpy c api
use current numpy c api
use current numpy c api
Use the new numpy c api that require PyArrayObject as input.
Use the same attribute checking as done in NumPy.
Make Subtensor use the new NumPy interface

IncSugtensor and the GPU code still need update.
Make IncSubtensor use the new NumPy API.
Make GpuSubtensor and GpuIncSubtensor use the new NumPy C API.

This simplify the *IncSubtensor code at the same time.
remove import not used.
Re-enable the caching of c code from [Gpu][Inc]Subtensor.
For Theano to always use the new NumPy C API (and so remove the warning about that).
Add blas timming.
more error info in tests.
remove commented code following code review.
Add doc for method of Tensor variables.
Better test error message.
import cleanup
Regenerated scan cython file with newer cython version 0.19.2