Moved DeviceRegistrationForm to the spark app and added the app_name field