fix(mod/lock): Use dedicated channel to shutdown goroutine properly

If closeChan is available and stopWatchChan was closed by defer
select selects a single channel randomly. This causes a panic sending to closed
channel.
fix(mod/lock): Use CreatedIndex in the first node to watch

ModifiedIndex in the lock directory is not incremented and the event
store has only 1000 histories for now.

Acquiring a lock is not queued while (index - ModifiedIndex) > 1000 and
prevIndex exists.
feat(prevNode): add "prevNode" to "Set" response
feat(prevNode): add test for prevNode
refactor(dashboard): Restructured front-end dashboard code.
fix(dashboard): bugs in key browser and stats page.
Fixed key add, key delete bugs. More refactoring.
fix(build): Use ngmin. Fix all introduced erros in previous commits.
refactor(tls): clarify & simplify tls configuration
fix(scripts/test-cluster): fix backwards logic on peers add
fix(tests/v1_migration): add a -name flag

The info flag is ignored as of 1c91c167fc98608ef850a7539550bfc15dedbb46
so in order for this test to work we need to add `-name` flag.
feat(server): make the RetryInterval of PeerServer tunable

For tests and other environments it would be nice to be able to tune how
long to sleep between retries.
feat(tests/discovery): use low retry interval

In TestDiscoverySecondPeerFirstNoResponse use a low retryinterval so the
test doesn't take forever.
hack(tests/discovery): don't use go-etcd for watch

go-etcd has a bug in the watcher that holds open a goroutine. Avoid
goetcd for this operation until it is fixed.
fix(tests/server_utils): use a WaitGroup for RunServer

Make sure that all of the servers exit before we return by using a
WaitGroup in each handler. This was used to help track down the issue
with the TestDiscoverySecondPeerUp test and the hung go-etcd watcher.
chore(tests/discovery): remove errant debug statement
fix(server/peer_server): stop the raftServer in Stop()

Stop() the raftServer if we stop the peerServer so that tests that start
and stop PeerServers exit cleanly.
test(config): unexport ETCD_DISCOVERY

if this is exported the next tests will try and use it and fail.
fix(test.sh): re-add the config tests

These tests were left behind in the move to put config in its own
package.
Merge pull request #542 from philips/fix-the-build

Fix the tests
bump(github.com/coreos/raft): ef3280ce54f60fff98a72012f547ed2b3415841f