core: rearrange product uris

MISSION

Advanced farther into well behaved web application, install as much as
we can into /ovirt-engine URI name space, removing / abuse.

Synchronize between jboss and apache URI layouts so that development
setup will be as similar as possible to production.

NEW LAYOUT

  -+- / (root.war)                 Redirect: ovirt-engine
   |
   +--- api/ (api.war)
   |
   +-+- ovirt-engine/ (welcome.war) [NEW]
   | |
   | +--- docs/ (docs.war)          [NEW]
   | |
   | +-+- services(services.war)    [NEW]
   | | |
   | | +-+- attachment/
   | | |
   | | +-+- files/
   | | |
   | | +--- get-session-user
   | | |
   | | +--- health
   | | |
   | | +--- host-register
   | | |
   | | +--- pki-resource
   | | |
   | | +--- reports-redirect
   | |
   | +--- userportal/ (userportal.war)
   | |
   | +--- webadmin/ (webadmin.war)
   |
   +-+- OvirtEngineWeb/
   | |
   | +--- HealthStatus.aspx        Forward:  ovirt-engine/services/health
   | |
   | +--- HealthStatus/*           Forward:  ovirt-engine/services/health
   | |
   | +--- VdsAutoRegistration.aspx Forward:  ovirt-engine/services/host-register
   | |
   | +--- register                 Forward:  ovirt-engine/services/host-register
   |
   +-+- RHEVManagerWeb/
   | |
   | +--- VdsAutoRegistration.aspx Forward:  ovirt-engine/services/host-register
   |
   +--- ca.crt                     Forward:  ovirt-engine/serivces/pki-resource
   |
   +--- engine.ssh.key.txt         Forward:  ovirt-engine/serivces/pki-resource
   |
   +--- rhevm.ssh.key.txt          Forward:  ovirt-engine/serivces/pki-resource

LAYOUT NOTES

HealthStatus servlet is used by python using urllib2 which supports
redirect, it does not accept extra path, so it is redirected into
servlet at services.

Registration uses python httplib which does not support redirect, so
these uris are forwarded into servlets at services.

/ValidateSession is gone as reports can be modified to support the new
servlet name at /services/get-session-user.

GWT NOTES

- Generate GWT files in-place so that application name is user friendly
  and there is no extra nesting, so we end up with:

      /ovirt-engine/webadmin
      /ovirt-engine/userportal

- Added client side BaseContextPathData class to read base context path
  from host page.

CONFIGURATION

ENGINE_URI was added to be able to configure URI at runtime, jboss
upstream has some bugs regarding variable substitution within resources,
once this is resolved we can have fully configured URI.

Change-Id: I9cb4822f6bf4d372715e12858635db5ed3edd115
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=961677
Signed-off-by: Alexander Wels <awels@redhat.com>
Signed-off-by: Alon Bar-Lev <alonbl@redhat.com>