Added voting query and some other changes

Added voting JSON query (also handles cancelling).
Added a method in MySQL connection handler for simple updates.
Added a method to candidate SQL query to find by candidate ID.
Added methods to query info class to get logged in user info.
Query testing page has buttons to fill data for some predefined test
queries.
Small change in SQL data so that voting test could work out-of-the-box.