Add doc comments and copyright statements

- Add better documentation comments for Message and TwigExtension.
- Make sure all files contain a copyright statement declaring the
  Wikimedia Foundation a copyright holder.