Added support for testing (and fixed WSAA to work with it).
Improved WSFE's API.