Improved rootsys.m4

Replaced AC_CHECK_PROGS by AC_PATH_PROG. Using absolute paths to tools
in Makefiles is preferable.
BranchManager now automatically handles branch enable and cache settings
Added methods begin() and end() to VectorBranch
Added operator() to ObjectBranch and VectorBranch, like in ScalarBranch