move routes.js from lib to controllers. fix #35