Issue #312 - enforce filesystem limits

Closes #312
`var MAX_SYNC_SIZE_BYTES = env.get('MAX_SYNC_SIZE_BYTES', Math.Infinity);`