Moved to test/ directory, added spiedfn unit test
added main_test.html for test dependencies
Pulled out SpiedFnMap