Add sample web project
Refactor for better client API