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:

[ ] Chrome
[ ] FireFox
[ ] Safari
[ ] IE 10
[ ] IE 9
[ ] IE 8
[ ] IE 7