Fixed bug, added voting sys.

Added voting system and duplicate check system.

Fixed bug in sockets when app restarts and undefined connections still
active. (or improper use of API)