[WIP] INCLUDEJS fixes

Rewrote handler for INCLUDEJS, allowing it to be used with complex URLs

http://tracker.phpbb.com/browse/PHPBB3-10866