RFM2Pi Gateway

Hi Trystan.

Before moving to dev branch, I finalized a working version of the python gateway, compatible with master.

Currently, the job is half done : the script is integrated in master but not functional (it fetches settings in a settings.ini file that does not exist).

We may
- remove it from master (useless, IMHO)
- leave it as it is (won't do any harm anyway)
- apply attached modifications to get it to work

Basically, I created a simple php interface to get the settings through localhost http requests. It is sort of "handcratfted" (no fancy json or whatever involved) but it seems to do the job and it is covered by "greedy" exception catching. Anyway I see it as a temporary fix until moving to your new architecture in the dev branch.

Also, I moved the files generated by the gateway to a dedicated htaccess protected directory, as the logs contain critical info (apikeys, in DEBUG mode).

Contains a few minor bugfixes as well.

If you pick this contribution, I'll write a "How to" explaining how to use it as an alternative to raspberry_run.php.

I'll try to merge those modifications into the dev branch as well and then work from there from now on.

Have a nice day.