Printing mails to console, when not production environment
Adding catching of BeanCreationException
Disabling check for edit permission which seems to crash regularly on golf.is
Fixing incorrect session handling
Trying to prevent IllegalStateException + not adding empty scripts
Merge branch 'master' of https://github.com/idega/com.idega.core into BRANCH_PLATFORM_5

Conflicts:
	src/java/com/idega/core/accesscontrol/business/LoginBusinessBean.java
	src/java/com/idega/presentation/Script.java