configurable branches

Hi,

we would like to restrict posting comments about commits to certain branches. We use TRAC with multiple repositories, so this new functionality is configurable both via trac.ini and via query parameters in TRAC url, to enable configurability per repository.

Our current (global) configuration is
```ini
[github]
branches = production,master,stable,dev
```