Include custom sessionStartupActions

Remove unneeded actions
Handle NULL locale in shiro session