better configuration

* separated environment configurable variables from variables.sh and placed them
  into config.sh.sample with the intent being that this file should be copied
  to config.sh and modified as appropriate
* adjusted the application to make use of the config.sh file
* re-ordered the maven project builds in variables.sh so that they build in the
  order: corelib api2 portal