Added test case that fails.
Implemented whole API (timeout still not working correctly).

Old client is reimplemented to be UI independent.
Implemented new client UI.