fixed login routes on subfolder installs
change getRecentPosts to take count
search cleanup
closes #1200