add sequelize migrations
update for express 4 and export app for testing
update authorization helper in api index, only ensure authorized status
fix passport routes
add pages controller
reorganize lib structure