Rest now treats only public class method as valid api calls.
Fixes #23
Http trait methods are set to protected.