This enables support for multiple chains

ATTENTION!!! This commit provides break to the API. 

This closes ipa320/cob4#57