router: Support wildcard routes, up to 5 levels deep.

Signed-off-by: Blaž Hrastnik <blaz.hrast@gmail.com>
Vagrantfile: Added a version filter to the Vagrantfile to require at least vagrant 1.6.0

Manually tested the change due to the need to test with multiple vagrant
versions, which are external to this project.

Fixes #335

Signed-off-by: John Zila <john@jzila.com>
Vagrantfile: Added a check to ensure that versions older than 1.4.0 also return a version requirement message.

Also implemented the same changes in the demo Vagrantfile.

Tested with vagrant 1.3.0, 1.4.3, and 1.6.5.

Signed-off-by: John Zila <john@jzila.com>
Merge pull request #336 from jzila/issue-335

Added a version filter to the Vagrantfile to require at least vagrant 1.6.0
Merge pull request #281 from flynn/wildcard-routing

router: Support wildcard routes, up to 5 levels deep.
cli: Improve documentation for app commands

Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>
cli: Improve docs, add examples

Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>
cli: Fix up formatting of release docs

Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>
website: Prepend newline to example code blocks

Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>
cli: Standardize on tabs in command doc strings

Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>
website: Bump CLI docs json

Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>
Merge pull request #334 from flynn/cli-docs

More CLI docs
website: Fix link on Installation page

Signed-off-by: Lewis Marshall <lewis@lmars.net>
Merge pull request #345 from flynn/website-fix-link

website: Fix link on Installation page
pkg: Add SSE writer package.

Signed-off-by: Blaž Hrastnik <blaz.hrast@gmail.com>
router: Use type composition for httpRoute.

Signed-off-by: Blaž Hrastnik <blaz.hrast@gmail.com>

Conflicts:
	router/http.go
router: Bring TCP implementation closer to HTTP.

Fixes #56

Signed-off-by: Blaž Hrastnik <blaz.hrast@gmail.com>
router: Allow all HTTP methods.

This is something the user's server should be handling, really.
One example is a server disallowing POST requests. With this
removed, PATCH verb should now work.

Signed-off-by: Blaž Hrastnik <blaz.hrast@gmail.com>

Conflicts:
	router/http.go
router: Use similar data structures to HTTP for TCP.

Signed-off-by: Blaž Hrastnik <blaz.hrast@gmail.com>

Conflicts:
	router/tcp.go
router: Move listener handling logic into tcpRoute.

Signed-off-by: Blaž Hrastnik <blaz.hrast@gmail.com>

Conflicts:
	router/tcp.go