Add mock behaviour and test for FT_CLOSE when HANDLE_INVALID
Some improvements (escaping of escape sequences, fix for message...)
Remove win32 conditional
Switched to configurable FakeDevices (via json)

* please install libjansson, version 2.5