Added application initialization and generalised Domain/Json integration.