bom detection and removal

Clean branch as discussed in https://github.com/getpelican/pelican/issues/600 

I need more direction/guidance on how to do unittest.