Yahttp sync 20140710

Fixes #1527, fixes #1489 and supersedes #1530 and #1528
this copies config.h only once to yahttp-config.h, and not after every update.