Updated code to support latest versions of packages
Added server.js
Added appfog support