Rewrite

I finally figured out what was causing the x264 issues, and I have also added in ffms2 to be compiled/installed as well. I did a bit cleanup so everything is easier to read now.