Include memory in registration.hpp

This was broken, but travis wasn't picking it up.
Reorganize travis scripts

We weren't returning error codes correctly, and we were duplicating some
logic checks.
Merge branch 'fix-travis'