build/packages: Add a primitive dependency generation

This generate a production.dep file that contain all the depencies of
production.js. Before including this file the Makefile must define
BUILD_DIR, where production.js is created, and APP_DIR, where the
application sources are found.