Make more portable between between ST2 and ST3.
1. Move settings loading into command entry points.
2. Helper functions save_utf8()/load_utf8()/load_resources()/new_scratch_view()