Optimized code of web application class.
Fixed bugs.
Rewritten API.