Code to draw histogram + some refactoring.

Client now sends request to server to retrieve data with complete
information about votes needed to draw histogram.