enable ci build on osx

OS X part depends on [Chilledheart/homebrew-seafile](http://github.com/Chilledheart/homebrew-seafile) largely since the travis-ci osx env is homebrew-based. This should remove a lot of duplicated work.