Moved some javascript outside of gems.

Login JS and keymaster is needed by the blog and shouldn't be in the
theme.
Small variable renaming
Removed debugging flags
Merge branch 'master' into pothibo.com