Thinking about a saveAs function
Add and remove resource params

The html is way off and overloaded. More directives please.