Changed repository to session, fixed persistence attribute, fixed clear webgrid
Added API