Add method to Table to introspect loaded behaviors.

Add behaviors() and hasBehavior() to Table to allow introspecting the
loaded behaviors.

Refs #2304
Merge pull request #2414 from markstory/3.0-hasbehavior

3.0 Add method to Table to introspect loaded behaviors.