Implement @methods support for controllers

close #50