Preflight header support.

I had some issues getting this to work with angular.js and discovered it was the lack of preflight headers.

I added -p as an argument to the http server. So far this is working for me but I am pretty new to python so let me know if there are any issues.