use $log instead of console.log

NOT READY FOR MERGE

enable travis and write some unit tests for the UI