The tags and branches APIs both support the same limit and start options. In future the tags API will also support filtering on substring and regex. Instead of duplicating almost exactly the same code in both APIs, move it into a base class that is reused by both. Change-Id: Ia0cbdc09e8570a53436b6fe85afcb0dbe5b876ee