Use inSyncBytes instead of localBytes to calculate sync progress (fixes #93).

Also rename variable to clarify.
Localize folder states.