Tidied up some code, dependencies and added git ebuilds of seafile.