fixed solar migration; weather.winddir may be null.
Merge pull request #15 from wrongu/app-restructure

quick patch for CentOS server