Move public directory out of lib.
Fix links for custom routes.