added a domain variable to the settings. removed a good amount of dead code. image avatars are now requesting secure paths from gravatar