Cleanup unit tests and refactor to use configurable urls and IP's

Change-Id: Icef0a87c3f55e09eafe9d45ccce5c9c33aa55a27
Reviewed-on: http://review.couchbase.org/39697
Tested-by: Jeffry Morris <jeffrymorris@gmail.com>
Reviewed-by: Brett Lawson <brett19@gmail.com>