Make it possible to refer to methods through a URI

When a list of methods available in an API grows, it is sometimes cumbersome to let someone know which method one is referring to.
This pull request simply adds ids to all methods and make it possible to refer to those through their ids.