Remove `deployed` column from `project_pages_metadata` and use `deployment_id` instead

This is complex, probably we'll need to break this issue to many smaller once.

When we migrate pages to new zip architecture we actually use deployed flag. So it may be wise to do this only in 15.0

Edited by Vladimir Shushlin