A massive import.php re-write.

Most of the website has been re-written. Too much to explain... just go
with it, its simpler and nicer this way. However the settings menu needs
to be re-made.