Merged route and map methods

Now route method is more intelligent and if you put object as callback,
it will automatially define it as ReST class