Massive upgrade

Started the web UI.

Made the live pattern sensing code.