Removes old file field
Adds proper serialization
Adds constants for magic values
Adds related models