Fix incorrect packaging type and bump to version 2.
Remove useless class.
Add sample servlet and configurations.