added core memoise function for routine things
merging changes from morn

Merge branch 'openid' of github.com:sociam/indx into openid
small patches to backgroundjs