There have been several scripts done for multiple connections.

All of your requests can be handled using the /server command.

You should read through the help file in the following areas:
/server
on connect
on start

There have been several requests like yours, and scripts have been written to do what you're asking for.