Switch to init func instead of main

This will let the Google AppEngine host it