WFS 2.0 Stored Query support

Here is the change set for the WFS 2.0 Stored Query support squashed into a single commit with spaces instead of tabs. This is replaces the pull request #476