Refactored server code
Refactored homepage js
Added "remove account" option