Removed some code duplication.

While working on issue #35, three functions generated the active_joints
string vector. Now it is only generated in updateTimestamps and passed
as reference to the functions that use it.