Changes for GlassFish 4.0

The changes are for GlassFish 4.0.  I did not test this on GlassFish 3.x and chances are they will not work on 3.x as I changed some of the rest command urls.