Improved config and boot script
- Config is now an easily extendible array.
- Bootstrap to simplify initialising.
- Added new pgport setting to set DB server port.
- General mini improvements, as is tradition.
@dmorley Please have a look and share your thoughts so far
Closes #155 (closed),#181 (closed)