Split.line refactoring and testing

I have moved split.line function out from pandoc.table, wrote tests for it and did some refactoring