Update post of file resource.
Adapt api_library to new calls to syncserver
fix some problems.
Prepared to test metadata resources