refactor header sending, for future better header management
- you may now remove url chunks by setting it to false,null,''
- added a simple redirect function