Restructure things for 'build' command, bump to 0.5.1