Whole bunch of improvements

* using .user.ini to specify file upload capacity
* improved logging
* better architecture