Add test cases for broken citations
Fix citations on spans.

* Fix 'citecite' problem.
* Improve case where what appears to be a citation is actualy span content.
* Correctly detect end of citation URL.
* Closes #120.