Sort all module imports

Sort all module imports and divide them by local and external
modules (like in gnome-shell).

https://bugzilla.gnome.org/show_bug.cgi?id=738603