Change structure of search result limits

This change will probably make it faster for webview to display the
search filters.
Change "author" to "authorID" in search result limit
only message if there are bad refs
fix_reference_urls returns bad refs as well