Moved some javascript outside of gems.

Login JS and keymaster is needed by the blog and shouldn't be in the
theme.