Added max display count, logo option, and sort by modified date

Also pulled out some code to be in it's own file. If you're not interested in these changes of course, feel free to reject the pull request.