OOP refactoring

* prime added for OOP
   https://github.com/mootools/prime
* API is a class
* apis is an array of classes