style(Documentation/api): keep curl based examples consistent and correct

- fix curl examples where `http://` was missing.
- consistent passing HTTP method parameter (all examples now have -X ACTION at
 the end or the url, GET is implicit)
- quote url when it contains `&` , instead of escaping
Merge pull request #470 from ranjib/consistent_curl_examples

style(Documentation/api): keep curl based examples consistent and correct
Fix mod/lock and mod/leader return error codes.
fix(peer): Pass peer server timeouts through factory

The peer's heartbeat and election timeouts are needed to build
the transporter in the factory method.
chore(gofmt): Run gofmt on server/config.go
Download and build Go 1.2 in the Dockerfile.

The dependency BurntSushi/toml actually needs Go 1.2, because it uses
encoding.TextUnmarshaler, which didn't exist in Go 1.1. Since the PPA
that we use doesn't have Go 1.2 yet, we will use the same method as
Docker, i.e. download Go source tarball and compile it.
Merge pull request #474 from jpetazzo/switch-to-go-1.2

Download and build Go 1.2 in the Dockerfile.
chore(build): use third_party.go

use the third_party.go project to replace our update script. This
requires moving a few things around and gets rid of a few annoying bugs:

- You can now bump individual packages
- A new src directory isn't created on build
- Less shell scripting!
- Things get built into ./bin/
fix(server/release_version): checkin to git
Merge pull request #460 from philips/use-third-party.go

chore(build): use third_party.go
fix(travis): fixes from the third_party.go merge
Merge pull request #475 from philips/fixup-travis

fix(travis): fixes from the third_party.go merge
Merge pull request #472 from benbjohnson/fix-error-codes

Fix mod/lock and mod/leader return error codes.
Merge pull request #473 from bcwaldon/fix-peer-timeouts

Use election and heartbeat timeouts when building peer transporter
etcd is in the bin directory, fixes bug with the docker image not working
Merge pull request #476 from ekristen/master

fixes bug with the etcd docker image not being able to run
fix(scripts/test-cluster): use ./bin/etcd now
Merge pull request #481 from philips/fixup-test-cluster

fix(scripts/test-cluster): use ./bin/etcd now
feat(etcdbench): Add -endpoint flag to etcdbench
fix(etcdbench): Check for error in etcdbench set operation