Fix order of citation attribute in spans.

* Refactor parseAttribsToArray() a little.
* Fixes order of "cite" in attribute list to match Redcloth.
* Small PHPDoc additions.