made master retry count configurable.

Also upped default to 45 (matches hadoop's default). This is good to have to make tests more consistent. On our jenkins cluster, we see that tests fail often because of temporary issues with local masters.