Fixed initial service set up and advertising logic.

The server wouldn't start advertising for me. I fixed the start advertising logic, and made it wait until the service was successfully added.