append apps directory to python path
fix blog domain
move SESSION setting to bottom