Reorganize some functions to make more sense
Remove mootools dependency from options page, and remove mootools from repo alltogether.