bump min php version to 5.3.0, throw out older version checks, use anonymous functions where applicable (found just one place where it makes sense), use exception linking throughout. work in progress. refs #1256