master context, script caching

1. Special "PrepareMasterContent" events allow to create prototypes for
masters
2. Script caching on a CRC32 basis should speed up script execution (I
should profile it)