Increase version number to 0.4.0

This should have been done as soon as I made a branch, but oh well.
app.py: Two bugfixes

* Fixed input_path being None
* Fixed unhandled exception when trying to locate a config file.