Added seahub api functional tests

The api tests is almost setup and quite easy to use. The ui tests part would be improved later.