Correct .travis.yml format and add Travis badge.
Remove flakiness from dict keys by introducing OrderedDict