Move classes into packages and enable web usage for JPA samples.