Finished modularization of web UI and added login support