Gpu diagonal subtensor

@jaberg, can you review this rapidly? We need this for a deadline.

this need PR https://github.com/jaberg/TheanoConv3d2d/pull/1436 to work correctly. PL have review it and I fixed his comment that was just comment/error message fixes. So I should be merged rapidly.