Reorganised settings & bootstrap. Moved gravatar to a library.