Merge pull request #5 from CESNET/master

Update production version of Perun to latest devel
Merge pull request #10 from zlamalp/devel

Fixed transaction handling above approveApplication() method
Merge pull request #11 from zlamalp/devel

Fixed source formatting + Fixed condition on password change in GUI
Merge pull request #18 from zlamalp/registrar_transaction

Registrar: fixed transactional behavior on approving application.
Merge pull request #19 from zlamalp/fix_gui

Fixed final name of production version of GUI in pom.xml.
Do not set new login from application form when user found while approving.

 - case: user joined identities after sending application
 - notifications: if user known, get login from attribute instead of application (if attribute not empty)
Registrar: do not create application when password reservation fails.
 - GUI: fixed text in exception message
Registrar: notifications to VO admins are now by default 'en'.
 - Optionally based on attribute value for VO/Group.
 - Return RegistrarException to show raw message in GUI when approving application
Registrar: fixed transactions above createApplication()

 - method createApplication() separated in two methods
 - createApplication() is no longer transactional and does verification and approval only if creation succeed
 - createApplicationInternall() is transactional and do not verify and approve application
 - throw RegistrarException from createApplicationInternnal() + rollback on ApplicationNotCreatedException
 - add new notification type APP_ERROR_VO_ADMIN
   (used when automatic approval fails to notify vo/group administrators)
 - moved code for sending verification mail to ensure correct order of recieved
mails
 - GUI - added new app mail type
Registrar: fixed login check/reservation

 - fixed case, when user and his logins were new, but considered as already in use and unreserved from KDC

Correct logical order when approving any application is now
 - set all non-login attributes
 - create member / add to group
 - unreserve new login, if user already have login in same namespace
 - set login attributes, which are purely new
isValid() is not available in PostgreSQL driver.
Merge pull request #34 from tauceti2/extSourceSQLFix

isValid() is not available in PostgreSQL driver.
Core: Fixed set method in UF:V:shell module.

Set method calls itself in old behavior, so it causes stack overflow.
In new version this method calls set on UF:D:shell attribute.
Core: fixed behavior of module UF:D:shell

UF:D:shell can be null now because shells are selected primary by
U:D:preferredShells. UD:F:shells is used for forcing one shell on
selected facility for the user. For the same reason fill method is no
longer required (and wanted) for UF:D:shell.
Merge pull request #36 from licehammer/shellsModules

Core: Merge fixes in shells modules
Core: FacilitiesManager.createFacility edited, so as a facility admin is able to call the method. After creating the facility, the creator become manager of the facility.
Core: FacilityManager: Created methods for copying Managers, Admins and
Attributes from one facility to another. When there is already Manager,
Admin or Attribute in the destination facility, it is overwritten instead of throwing exception.
Tests added for all the three methods.
Registrar - fixed typo in method name createApplicationInternal()
Merge pull request #33 from zlamalp/registrar_login

Registrar: fixes for login handling and transactions
Switch auditer messages debug logging to trace level.