Added tests for line separators, flush and close
Fixed wrong result if stream contains no line separator
Fixed #35; execute() returns wrong value if output contains no line separator
Rewrites server based tests with Spock
Extracts test target and mock for code readability
Added server based tests for command execution