Added build script to masthead application

Build script creates PHAR archive, configuration and scripts to
run the application under Apache. Also updated .gitignore rules.