You earn a large rested experience bonus when you log out in this rest areas. This gives you a massive 200-percent bonus to experience gain from most actions (though experience from quests isn’t included). The amount of rested experience you earn increases the longer you’re logged off, and your experience bar will be blue (instead of purple) while you have the bonus.
The World of Warcraft API has a list of functions that you can interact with and to talk with WoW using Lua. These are your building blocks for manipulating WoW windows and chat boxes and so forth. Looking at these for the first time can be very daunting. But don't be discouraged. After getting more familiar with Lua the WoW API gets much easier, and the documentation gets much easier to read. Keep in mind there are many different ways to accomplish your goals, so when going though the API keep looking until you find a way that best suits what you need.