Fix file picker SVG issues

- Moved code for replaceSVG and replaceSVGIcon to OC.Util
- Fixed file picker SVG mimetype icons
- Fixed file picker close button

To test in IE8:
1. Go to personal page, scroll down to avatar
2. Click "Select new from files"

Please review @jancborchardt @MorrisJobke