Respect the maxSize if specified by popupClass. Fixes #23

.. and:
* better determine if popupClass is compatible with OpenLayers.Popup