read component host and/or port from env var

The host and port at which component handler URLs are found can be
specified in the environmental variables `PLANK_HOST` and
`PLANK_PORT`. These are then substituted into the JSON before
serving.