Rewrote posts console to fix ajax bug

There was an ajax error with the way posts were being loaded, this fixes that.
Fixes #231