This test covers the code in the simple example.

The code is slightly different to account for asynchronous events and
hopefully provide predictable completion. 

It has pretty simple structure where each section has a completion boolean (e.g. gotParam) that is set asynchronously and a chunk at the end that waits for all the sections to complete. It could probably be split into multiple test cases or refactored using promises. I wanted to keep the code itself as close to the text of example/simple.html as possible. Hopefully examples will exactly represent the best practices of using roslibjs and give an easy starting point for new projects.