Adds optional number of build retries for server behaviors

* Added number of attempts to the create_active_server function
  to allow for optional retrying of builds if there is a fault
  or timeout

Change-Id: I70385a265b55ecfc8f4851a5d59e75dd4799fa3f