Fix apipie static generation on RPM build time

Use sqlite3 as dummy driver for the Rails environment when building RPMs to
make Rails happy when loading environment to generate the static documentation.

Also fix various issues in the documentation that was preventing from
generating it.

Last but not least: one .orig file was removed (probably artefact from some
conflict resolution)