Add BIN_ID property to contexts

Also fixes usage of deprecated functionality on cuda 6.5+

This is required for the multi-gpu work on theano.