Moved code, fixed form

Moved code out of the browser view to allow easy importing
from other packages, fixed remove dead files support from
form.
Preparing for first release