fix status codes check. fixes #356
fix single file downloads. fix #314
Merge branch 'dev' into syno-debug