[server] rewrite seafile-controller