Added registration and login js
Finished first version of friendList handling in friendList.js