Couple of quick enhancements

Fixes #39 (which is also part of #32) and part of #38.

Adds some test coverage for LRS and ActivityDefinition. Tested in:

- [x] Chrome
- [x] FireFox
- [x] Safari
- [x] IE 10
- [x] IE 9
- [x] IE 8
- [x] IE 7