Refactor things and implement some Loader tests
Add Travis configuration