Added Console client and fixed some bugs in WebApi project