Build parameters support

We wrote tests and everyfink!  

(Someone might want to take a look at things, but it was really quite simple once Daniel tidied things up)

NOTE: the password support is currently "in the clear".