The webapi needs to require yaml so it can encode its responses in it

Before this change the webapi wouldn't return yml unless json had been used once before.