Modularized app (fix #7) and made it autoupdate if a moderator says so (fix #6).

Holy smokes, this was fun.

@robhudson can you take a look so I don't commit any horrible crimes here? Uuh and perhaps @tofumatt wants to tell me how horrible my JavaScript is?

Thanks all :)