Support previous and next links with non-standard content

Added option to use classes on the list items to identify previous
and next links, to give more flexibility and allow use of custom
content (eg icons, text, etc) in the link element content.
Merge pull request #1 from acoulton/feat/prev-next-classes

Support previous and next links with non-standard content