Add AGPL license declaration, license page, and view source button (non-IE).
Search pattern generator minor cleanup