make api key an optional parameter

Here's one more thing I'd like to change - I don't have an api key, but I'd like to be able to run the web ui nevertheless. This change should make it so that we only try passing an api key to the btsync config if the user specified it when adding the role. Haven't tested it yet though!