Fix syntax error in sample config and reindent.
Answer with 400 instead of 406 in web hook.

No idea why it was 406 in the first place.
Use https in bitbucket URL.
Add Travis CI configuration.