Migrate to filesystem notification

Migrate preview server to filesystem notification which is more efficient compared to polling.