Move common inline functions into _common.pxd
Tweek .hgignore to not track some files