Clean up .fw and .img file naming

This removes lots of hardcoded bbb.fw, etc. names and refactors the
post-createfs.sh code to nerves-common.