use $log instead of console.log

enable travis and write some unit tests for the UI