Added travis, gulp and refactored a bit