General bug fixes

I fixed a few bugs. Some were related to themes. Also some other stuff
happened. Whatever.
More Bug Fixes

I fix bugs as I work
Also, I added a page count API because procrastinating