Added stop hook which calls close-port
Update to use juju-log and $CHARM_DIR
Small cleanups
merging lp:~dave-cheney/charms/precise/mediawiki/trunk as per https://code.launchpad.net/~dave-cheney/charms/precise/mediawiki/trunk/+merge/182803