CORE, GUI: update URL path of Perun components

- Update URL paths to perun's components. We now specify
  authz type before component's name:

  e.g.: /perun-rpc-krb/ => /krb/perun-rpc/

  Available authz types are: krb, fed, cert, non. If not present in URL,
  Apache is expected to pick one of them as default.

  For password-reset application using 'force-fed' is URL still same,
  since it didn't have any other options then federated login. When
  solution ensuring force reauthentication will be implemented, then
  we can probably add support for other types to GUI links.

  In perun-core Utils class use new and old variants to decide what
  authz was used by user to ensure backward compatibility (I'm not sure,
  if Apache sets original or new URL in HttpServletRequest when making redirect).

BEFORE ACCEPTING THIS COMMIT TO PRODUCTION:

- Update Apache configuration to provide redirects for old URLs, since
  CESNET instance of Perun is already linked from outside web pages.
- Update Apache to correcly process new URLs.
- Update URLs in perun-registrar.properties and perun-rpc-lib.properties
  files to use new scheme. Engine configuration shouldn't require
  any intervention since it uses IPs or perun-rpc-lib component.

AFTER ACCEPTING THIS COMMIT TO PRODUCTION:

- Notify Meta and DU to update any links to Perun in their web pages.
- Update documentation on our wiki "Perun remote interfaces"
  to present new URL scheme.

RESULT:

- As result of all this changes all Perun's components should be
  always avilable on same host like this:

  /[authzType]/perun-rpc/
  /[authzType]/perun-gui/
  /[authzType]/perun-registrar/
  /[authzType]/perun-identity-consolidator/
  /perun-password-reset/

  where [authzType] can be empty (then apache will pick default)
  or krb, fed or cert (or non - for registrar only).
GUI: fixed URLs to respect new setting

- Default URL leads to KRB on devel and to NON on production.
- Use also /fed/ and /cert/ on devel.
- Added "krb-einfra" as URL option, provided by html pages
  "[GUI module name]KrbEinfra.html".
CORE: fixed parsing common name in Utils

- Replace all double+ whitespaces in input string (raw name)
  with single space and trim input, so matcher can parse name
  correctly.
CORE: trim names of user in createUser()

- Trim names of new user before creation in DB to prevent
  storing values like "Name ".
Merge pull request #165 from zlamalp/parser

CORE: fixed parsing common name in Utils
Merge pull request #166 from zlamalp/trim

CORE: trim names of user in createUser()
Merge pull request #162 from zlamalp/url

CORE, GUI: update URL path of Perun components
CORE, RPC: support for loading configuration to GUI

RPC:
- Return Map<String, String> as configuration for GUI on
  special rpc request "/utils/getGuiConfiguration".

CORE:
- Support for loading Properties as Map from custom
  configuration file.
GUI: loading configuration to GUI from RPC

- Removed some items from static configuration files.
- GUI configuration is always loaded after getting
  PerunPrincipal and GUI won't load without it.
- BasicOverlayType can be used to get any property
  from any JS object.
- PerunWebSession is used to store GUI configuration.
- Display captcha for default (non) URL even for devel.

- Custom logo can't be set during build (by maven) anymore,
  but is stored the same way as rest of GUI configuration.

BEFORE ACCEPTING THIS COMMIT TO PRODUCTION:

- Create file "perun-web-gui.properties" in /etc/perunv3. Perun-core currently
  doesn't support custom location for properties files it loads.

- Put following data in perun-web-gui.properties file:

perunReportEmailAddress=perun@cesnet.cz
defaultRtQueue=perun
vosManagerMembersGroup=members
isDevel=false
logoUrl=img/logo11.png
getSupportedPasswordNamespaces=einfra,einfra-services,egi-ui,sitola
getAttributesListForMemberTables=urn:perun:member:attribute-def:def:organization,urn:perun:user:attribute-def:def:organization,urn:perun:user:attribute-def:def:preferredMail,urn:perun:member:attribute-def:def:mail,urn:perun:user:attribute-def:def:login-namespace:einfra,urn:perun:user:attribute-def:def:login-namespace:meta,urn:perun:user:attribute-def:def:login-namespace:mu,urn:perun:user:attribute-def:def:login-namespace:sitola,urn:perun:user:attribute-def:def:login-namespace:cesnet,urn:perun:user:attribute-def:def:login-namespace:egi-ui,urn:perun:user:attribute-def:def:login-namespace:einfra-services
getAttributesListForUserTables=urn:perun:user:attribute-def:def:organization,urn:perun:user:attribute-def:def:preferredMail,urn:perun:user:attribute-def:def:login-namespace:einfra,urn:perun:user:attribute-def:def:login-namespace:meta,urn:perun:user:attribute-def:def:login-namespace:mu,urn:perun:user:attribute-def:def:login-namespace:sitola,urn:perun:user:attribute-def:def:login-namespace:cesnet,urn:perun:user:attribute-def:def:login-namespace:egi-ui,urn:perun:user:attribute-def:def:login-namespace:einfra-services
Merge pull request #167 from zlamalp/props

CORE, RPC, GUI: loading configuration to GUI from RPC