Refactor Facebook controller and Node model