A good start on an ownCloud version.  But the "conditional compilation" stuff is a complete mess... need help from an Erlang native speaker...
Add explicit "sync" action for ownCloud (which has a usable CLI).