Move flat.js to lib
Update package.js
Add common/flat.coffee
Update server/flat.coffee
Add .versions