web/app: configure path to page templates

Express searches page templates in `$(pwd)/view` by default.
That obviously does not work when the server is started via

    node web/app

In this commit, the express app is configured with a views path
resolved using `__dirname`, which makes it independent on the current
working directory.
Merge pull request #20 from strongloop/feature/fix-missing-home-ejs

web/app: configure path to page templates
Fix build to create html5/build first

Add a build step to `html5/configure.js` to create `html5/build`
before writing datasources.js and models.js files to that directory.

Modify the master gulpfile to report build errors on reload.
Merge pull request #15 from strongloop/feature/fix-gulpfile

Fix build to create html5/build first
Upgrade web/app to express 4.x

 - Add extra dependencies for the middleware used.
 - Fix the usage of `app.locals` API.
Merge pull request #23 from strongloop/feature/upgrade-to-express-4

Upgrade web/app to express 4.x
Use loopback-boot to setup html5 loopback client
html5: move replication setup to a boot/ script

Move most of the remaining loopback code in app.html5.js into
a new script boot/replication.js.

Clean up unused variables in app.html5.js.