Restructure web interface code base