core: Support JSON serialization in ExternalId

This patch adds a default constructor to the ExternalId class in order
to support JSON serialization as required by the compensation mechanism.

Change-Id: I51e643893b9e59cb0cacd1779398946f1babe694
Signed-off-by: Juan Hernandez <juan.hernandez@redhat.com>