Elgg gets a front controller

This was easier than I expected.

I tested both in the root of web server and in subdirectory.