Deprecated old "Application" calls in ApplicationFactory. Fixed some
compiler warnings. Downgraded servlet version to 2.4 since Vaadin 7 is
compatible down to that level.