Fixes expose of staticmethod

Since 9358e59af80d9c5f88d5713ca7d1e648bfad1403, we cannot expose
staticmethod anymore because the pecan.util.getargspec is now looking
for the content of __closure__ that is None is this case.

This changes fixed that

Change-Id: Iabba8310cc58e155c6aeefc481e118de84c58734
Only define remainder when not empty

I had an issue using a post method on a /path/ since get_args will set
me up with a first empty argument of an empty string and eat my first
argument with it.

Change-Id: Ieb2f192127c1fca430f1376e5bdb2be863fe6920
Merge "Fixes expose of staticmethod"