split off avatar.js from settings, added username.js
handle displaying of success/error message through functions
Merge pull request #48 from pkkup/master

account settings javascripts and apis