APSPattern updates from CBL2
APSPattern updates from CBL2

If these changes are good, should merge them into the QGL side of
things.
--CAR

Plourde-Research-Lab/PyQLab,rmcgurrin/PyQLab,BBN-Q/PyQLab,calebjordan/PyQLab