Rosbag fixes

Fixes applied to groovy ros_comm with the patches originally outlined in

* https://github.com/ros/ros_comm/issues/106
* https://github.com/ros/ros_comm/issues/114