Apply fixes from  Atoomic

Should fix #3
Add .travis.yml
Merge pull request #4 from lestrrat/topic/rt94570

Topic/rt94570