withGarbagePeriod and newHttpEndpoint no longer exist.

Correct samples so that they work with current API.
Also, correct typo and change some references from
HttpEndpoint -> HTTP endpoints

Change-Id: I1bdfd6b0e67f12e54591fdea7bb0a47c6bd56799
Change configuration information in developer guide

Also correct some typos in xml attributes in samples

Change-Id: I790d237bd353f0431bc58cd946d82c447ad96ac3