bin/hooks/commit-msg: Improve parsing

Make sure that the hook does not add a newline between the tags in case one of
them is already present in the commit message.

Also the first state dropping empty lines is not needed since git is doing this
automatically. It never inserts leading newlines into the commit message.

Change-Id: e77cebd0dc
git-trunk/config: Move the Jira config to modules

Change-Id: d145a412aa
Story-Id: 78913390
git-trunk/modules/common: Change IssueTracker

This change makes it possible to do certain things in the future, for example
for repo prune to filter stories and prune only these assigned to the current
user.

Change-Id: 825e9a0b88
Story-Id: 78913390
wip

Change-Id: 9c48703451
Story-Id: 78913390