Move some code to op.h. Update mime types. Start working on stat ws.