Remove unused code.
Add more tests, fix static iframe use