Merge pull request #641 from yason/master

Add #ifdef to include correct headers on BSD systems
[python] Rename group repo related api
Improve object and block writting performance.
[scripts] show error detail when gunicorn failed to start
v3.0.4
[scripts] fixed creating admin account in seafile-admin
Add argument to upload-api:replace if exist
fastcgi: optional env var SEAFILE_FASTCGI_HOST for listen address
Merge pull request #654 from matejc/fastcgifix

fastcgi: use 0.0.0.0 instead of localhost
Merge branch '3.0'
Merge branch 'poet' into 3.0
Use uname command to detect Darwin platform
Add travis-ci script
Merge pull request #680 from Chilledheart/detect_darwin_correctly

Use uname command to detect Darwin platform
Merge pull request #689 from Chilledheart/travis-ci

Add travis-ci script
travis-ci: build vala file seperately to avoid bus error
Merge pull request #690 from Chilledheart/travis-ci

travis-ci: build vala file seperately to avoid bus error
[lib] remove duplicated code in rsa.c

    - remove duplicated code
    - better code style
Merge pull request #698 from Chilledheart/remove_duplcated_code

[lib] remove duplicated code in rsa.c
[server] correct usage of g_strndup

  - g_strndup will always allocate a n+1 bytes string, and terminate it by NULL.
  - there is no need for manually doing this.
  - see more at glib's source (glib/gstrfuncs.c)
  - see more at glib's document
    https://developer.gnome.org/glib/2.28/glib-String-Utility-Functions.html