Added vendor libraries to client, started to refactore a bit.