Deprecate offsetLines for file fragments

Simply use offset: {line: lines, ch: 0} instead.
Move test scripts to test/cases
Move test script runner to test/runcases.js
[test suite] Factor out some shared code
[test suite] Add some basic tests for file fragment uploads