moving scripts into seperate files
fixing login
Merge pull request #16 from smonette/chat-improvement

moving scripts into seperate files