Convert UI to polymer look

Brings design in line with Google's Material Design guidelines. There
is still some work to do on this but for the moment it looks
convincing enough.

Also fixes some UI bugs in the main code