allow passing options to localCompile, handle browser path routing and flash notifications in boilerplate router