Support user configured headers
Sorted the object to index.html
Put saving behind flag
Save bin metadata