Restructure dependencies so that JC-SDK is optional

- move the addition if JC-SDK components as dependency as far as possible
  back in the conversion process
- check for availability of api.jar and replace with jcardsim if not
  found