Remove unused local variables and imports
Support webassets 0.10

Fix #45
Fix #46
Close #47