Multiple changes

Refactored web directories, added socket.io library, added .gitignore
for *.db files