Made addPopup more compatible with the new popups, refs: geomoose/geomoose#53
Made addPopup more compatible with the new popups, refs: geomoose/geomoose#53

klassenjs/geomoose-js,elil/geomoose-js,klassenjs/geomoose-js,geomoose/geomoose-js,geomoose/geomoose-js,elil/geomoose-js,klassenjs/geomoose-js,geomoose/geomoose-js,klassenjs/geomoose-js,geomoose/geomoose-js,elil/geomoose-js,elil/geomoose-js