Rename bundle to client.
Move client entry point to a separate file.