better support for IIS web servers

http://stackoverflow.com/questions/5705082/is-serverserver-addr-safe-to-rely-on
shuffled foolicensing init code around

calling the foolicensing code earlier, so all filters and actions are
hooked up correctly
Merge pull request #2 from bradvin/master

foolicensing fixes