Refactor into splitFrames()
Add tests
More tests, empty animation and non-animated
Add .travis.yml