Revert "Named pipe use DataContractSerializer"

This reverts commit 54ebfeec8c9afc5e5dad27421a62572b295da700.
Remove NotImplementedException

Accidentally committed a piece of debugging code.
Add Flextime.Application to Debug build configuration

I do not know why it was not part of the Debug configuration.
Now it is.
Synchronize pipe client action on main thread

The named pipe client would not execute the add measurement action
on the main thread, causing exceptions.