ros_bag 508

Reworked bag.py to provide various methods for getting info about the bag as a programmatic object rather than in string or yaml format.
Where does this file come from? Is it generated by the tests or is it a hard coding that accidentally got committed? If it is generated it should use the `tempfile` module and not assume `/tmp/test_get_message_count.bag` is an available path.