added middleware folder (forgot to add) and also refactored people_controller to include register and unregister methods. added Procfile for running thin server and changed config.ru to log Rails for thin server
refactor app.js for register and unregister paths