Generic packaging script described in #4
Resolves #1 and #3
hidden files etc