Migrate application classes from legacy JApplication to JApplicationWeb