(refs #3129, BP from #3073) fixed

make redirect to login action when tha page is following condition

1. login action is required ssl setting.
2. access doesn't use ssl then the member is not login.
3. the accessed page is that  'is_secure' is 'false' or 'both'.
(refs #3129, BP from #3073) add feature to set next_uri value when the GET parameter was given
(refs #3129, BP from #3073) fixed not to occur redirect loop when access to login page
(refs #3129, BP from #3073) fixed to make login url using ssl_base_url setting for not to redirect twice
(refss #3129, BP from #3073) fixed to redirect considering include path
(fixes #3129, BP from #3073) extract redirect logic to private method