Expando Object support

I've added support for sending ExpandoObjects as parameters. Tests updated. Works both for segments as well as parameters. Refactored the code some also to keep it more DRY.