cleanup, optimization & bump to 1.1

Signed-off-by: Daan Kortenbach <daan@kortenbach.org>
Merge branch 'master' of github.com:daankortenbach/redirect-to-login-if-not-logged-in