use typeclass for message parameter extraction
renamed method to get optional parameters
Merge pull request #254 from wajam/fx-request

[NRV] Use typeclass for message parameter extraction.