Add some wp functionality

Add a bunch of essential functionality.