nits
cmake: hack to avoid escaping problems in cmake 3.1 parser

Fix suggested by Mario *LigH* Rohkrämer
analysis: don't add the cost of picture boundary CU to avgCost [CHANGES OUTPUT]
analysis save/load: refactor full implementation

1. Move analysis inter/intra data into encoder
2. Encoder allocates and frees memory for x265 analysis, remove api calls
3. Inter and intra data allocated based on sliceType only
4. frame record size is now variable
analysis: encodeResidue() directly write to reconPic
common: move analysis reuse structs to common.h

files in common/ shouldn't include encoder.h
encoder: add prefix to FREAD and FWRITE macros to avoid MacOSX macro conflict

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/sys/fcntl.h:111:9: note:
      previous definition is here
#define FWRITE          0x0002
cli: fix analysis filename argument

This showed up as a GCC warning about an unused variable, but having the arg
handled here prevented the org from being passed to x265_param_parse()