Added function supports()

Added new function in globals to determine if a particular feature is
supported. This should allow compatibility to be maintained across
server versions.