add cublas status in cuda 6 to fix warning

...and #define for older CUDAs to not break the build.
Merge pull request #413 from shelhamer/cublas-status-not-supported

add cublas status in cuda 6 to fix warning
net knows output blobs
Merge pull request #414 from shelhamer/net-output-blobs

Make net know output blob indices
Write/create/truncate prototxt when saving to fix #341

WriteProtoToTextFile now saves the prototxt whether or not the file
already exists and sets the permissions to owner read/write and group +
other read.

Thanks @beam2d and @chyh1990 for pointing out the open modes bug.
fix workaround in net prototxt upgrade
Merge pull request #417 from shelhamer/create-and-write-proto

Write/create/truncate prototxt when saving to fix #341