Add ability to create topic branches on release branches

This change allows creating a feature branch based on
release and hotfix branches.

It also allows creating a topic branch based on a long-lived
feature branch.

Change-Id: I79784d64821f497942cb5fff2d86a265a7c8ac7b