Updated locking messages. Fixed tests. Fixed preview mode link rewriting.