Support Deer compatible application IDs

Atlas 4.0 will use IDs instead of slugs for applications. Ensure that this extra field is preserved and also an id is generated when a new application is created.