A new generation of carefully considered garden buildings is offering places to work, play, cook, bathe and sleep.