Move build systems to a dedicated module

Cleanup the code.
buildsystems: Fix moving libraries to -devel with broken symlinks

os.path.islink() won't work on broken symlinks, we need to os.lstat()
This puts .so links back in -devel.
build: Fix typos
snapshot: Detect None components
buildsystems: Separate debug information from executables

Separate debug information and put it into separate files that
will be moved into a dedicated "debug" artifact.

See: http://sourceware.org/gdb/onlinedocs/gdb/Separate-Debug-Files.html