Move to MPLv2 license headers, add modelines.

Change-Id: I895bab038eda82b80e1a223ad877a9674fe561ee