Add filtering options to ListBranches REST API

Add substring and regex options. Those options are supported by other
similar REST API (ListProjects, ListGroups).

Also removed the @Singleton annotation because it can no longer be
a singleton since the endpoint support options.

Change-Id: Iec21c01718e1bf62a21b9a765935d19d9f670d00
4 files changed