Use servlet context when generating URLs.

Fixes create project when running from WAR.
Some code cleanup.
Fixes #3696
Merge branch 'master' of github.com:maqetta/maqetta

* 'master' of github.com:maqetta/maqetta:
  First pass updates completed to tutorial 5 - composition types
  Minor updates to local install test plan and user interface overview tutorial