export more generic version of TaskDao::updateTask() through TaskManager
CORE: added refreshSession(sess) method

- Added method for refreshing user and authz in session.
  It's for case, when user join identities and we want
  to get new user into session, without whole logout/login.

- Added javadoc for refreshAuthz(sess) metod.
Fix javadoc in RPC

 - problem with javadoc on SearcherMethod.java
Merge pull request #539 from stavamichal/fixInRpcJavadoc

Fix javadoc in RPC
Merge pull request #538 from zlamalp/core

CORE: added refreshSession(sess) method
REGISTRAR: fill user to session if possible

- Fixed case when user join identity.

- Retrieval of form must always check, if user is known by ext source,
  and if yes, fill user in session.

- Creation of application must do the same so user is set to application.
  It would be paired on approval, but it's nicer for admins to see username
  rather than actor/extSource.
Return the last state before fix by commit: d78446b

 - problem was not in javadoc but in php parser script
Merge pull request #541 from stavamichal/fixInRpcJavadoc

Return the last state before fix by commit: d78446b
Merge pull request #540 from zlamalp/regAuthz

REGISTRAR: fill user to session if possible
Fix javadoc in rpc - AuthzResolver method manager

 - problem with parsing javadoc where text of javadoc is on the same row
   like chars for start of javadoc "/*#"
 - move text on the next row
Fix file with table order

 - bad order, pn_receiver must be in order after pn_template, because of
   template_id in pn_receiver table
 - bad order, pn_pool_message must be in order after pn_template,
   because of template_id in pn_pool_message table
Fix indent in set and unset role cli scripts

 - use tabulator instead of two spaces
RPC: support embedded tomcat7 to run Perun locally

- You can now run Perun locally by "mvn tomcat7:run-war" in /perun-rpc folder.
- You still need configuration files in /etc/perun (e.g. taken from devel).
- If you don't use own DB, start SSH tunnel to devel DB before running RPC.

- In order to actually get response from Perun (other than exception) you must
  setup Apache web server to provide (or fake) authz in AJP headers and
  it must rewrite external http request to internal ajp request.

  Example Apache configuration file is on internal redmine wiki.

- HTTP and AJP ports are both started (did't find way to disable unnecessary HTTP port).
  But you will never get proper response from HTTP port since it will
  be missing AJP header for authentication provided by Apache.
RPC: converted spaces to tabs
Merge pull request #542 from stavamichal/fixJavadocInRpcInAuthzResolver

Fix javadoc in rpc - AuthzResolver method manager
Merge pull request #543 from stavamichal/fixTableOrder

Fix file with table order
Merge pull request #544 from stavamichal/fixIndentInSetAndUsetRoleCLIScripts

Fix indent in set and unset role cli scripts
Merge pull request #545 from zlamalp/tomcat

RPC: support embedded tomcat7 to run Perun locally