Move CLI related classes to one file; add web app boilerplate code