Form, database and filesystem abstraction for files