change fav icon, move fav action function to Common.js, fix a dm server bug