Initial import of poll code
Merge https://github.com/mgldev/phpoll