Added WebAPI client libs and tidied stuff a bit