Makes some Swift API tests optional

These 2 extensions aren't always activated in a Swift system:

+ formpost
+ staticweb

This patch uses the test.requires_ext skipping mechanism to make the
corresponding tests optional.

Change-Id: I573b2b7e9f15bb6c4952ec481e95d62bbc85a124
Merge "Makes some Swift API tests optional"