compositor: add API to manage compositor instances
compositor: move the main() to a new weston.c file