Implemented administrative interface and moved most javascript things into php.