* omit /index.html from URL (fix crash when user accesses document root).
* fix unit test
* Add parameter to specify profile storing directory (for test).
* Remove debug console.log