Add SolarCalculator class

This is some javascript ported to C# to determine if the sun is up in a
given location (I used it on rickparrish.ca to determine whether to show
the day or night theme)
Add copy-with-retry function