Extract deferring logic into module
Remove use of require_relative
Support user_session cookie for logging in
Specify ja-jp as locale