Added a new way to load shared tabs, boxes and properties. Added lib/api.php that cotains code that can be used in the theme. Rewritten some code for tabs and changed how the tabs property array works. Bug fixes.