[README] use svg icon for travis-ci
Merge pull request #735 from Chilledheart/use_svg_icon

[README] use svg icon for travis-ci
[build] prevent bad sed usage under osx
Merge pull request #737 from Chilledheart/fix_sed_osx

[build] prevent bad sed usage under osx
[build] Add CMake Build System

  - remove key storage stuff
  - fix daemon build under osx with cmake
  - Set SOVERSION of libseafile to 0
  - remove shared library version
test: Add the missing argument for read_index_from
Skip deprecated g_type_init() for GLib 2.36
[httpserver] bm->size >= 0 is always true

    In struct _BMetadata, size is unsigned.
    No need to check if bm->size >= 0
Silence compiler warning

   silence the warning of uninitialized head_id in putcommit-v2-proc.c
   silence the warning of implicit declaration of g_open in test-seafile-fmt.c
   silence the warning of implicit declaration of g_stat in test-cdc.c
   silence the warning of uninitialized e in merge-recursive.c
[TODO]update test_write_chunk to support new version of WriteblockFunc
[lib] better byte ordering detection

     - originally inspired by redis (src/config.h) and
       llvm (include/llvm/Support/Host.h)
     - BSDs detection inspired by this platform detection manual
       http://nadeausoftware.com/articles/2012/01/c_c_tip_how_use_compiler_predefined_macros_detect_operating_system#BSD
     - Apple's OSX and iOS is based on a fork of FreeBSD, including
       machine/endian.h as what we do to other BSDs should be enough.
[server] Add cache support for repo

  - [fix] correct some typos and mistakes mentioned by killing
  - [fix] expire cache in seaf_branch_manager_test_and_update_branch in branch.c
  - [fix] expire cache in set_virtual_repo_base_commit_path in virtual-repo.c
  - [impl] TTL support for cache
[net] add initial support for reopening logfile