Add a method to get all public interfaces of a given class

Also add the unit test for the method.
Update AbstractController to allow finding method with a superclass of the object modified