Track the version number of each agent

This is another prerequisite for agent auto-updates.

The corresponding code on the agent side that would actually announce
the version number is not in place yet, but since this column is
nullable, this should not break anything.
Adopt tests to new column in agents table
Merge pull request #166 from guidow/track_agent_version

Track agent version