fix build to work with gradle 2.0.
Merge pull request #101 from patflynn/master

fix build to work with gradle 2.0.
Handle empty endpoints params in web.xml better
Merge pull request #102 from loosebazooka/webXmlFix

Handle empty endpoints params in web.xml better