Updated Vaadin code to convert all LegacyWindow and LegacyApplication
objects into Window and UI objects. Fixed some compiler warnings all
over the code.