Added travis support.
Moved factory intialization into detector_factory module.