Revert 2d7a626..2def013

This rolls back to commit 2d7a626b37749a5f493e468af80b56b043deaf1b.
favorites dropup, js api goes to php wrappers