Added support for custom grant types (replaces/extends support for more ...

...specific assertion grants we had before). see #274 and #185