removed log messages
merged upstream
fixed stock counting unit bug
added background syncing of stock count. Refs item:408
added background syncing of discard count. Refs item:408
Merge pull request #264 from jofomah/fix/sync-background

Fix/sync background