Refactor class initialisation and preference object loading #8

Model class initialisation and preference object loading off
https://github.com/FichteFoll/sublimetext-filehistory to be more DRY
and to correctly attach/detach settings callback functions