Frontend: decode

Frontend for decode. This is a rather big commit, since it
involved some refactoring, it introduced backbone and some
stylesheet management.