Extract code encoding/verify methods to PollCodeGenerator class

Add code types
Add poll code generator to server project