Refactor ApiBaseMeta and the API definitions to
simplify even further the API creation.
API Enhancements

 - Added support for response handlers based on the
   SYNO API method.

- Added extract_sid() function.