Use regex to match field lines and a few other minor changes

The script now uses a regex pattern to match the lines, filtering out
any public, static, and/or final fields, as we don't want to turn these
into properties.  Also handles default values on the fields (i.e. the
field being declared with an assignment as well).  Also changes the
format of the template slightly, and groups the getters separately from
the setters.