Fixing CommentParser to parse @header comment properly. Fixes #322
Improves Resources to use JsonFormat for pretty printing JSON so that it works on PHP < 5.4 Fixes #321