First pass at tying into API. See github.com/librecms/librecms-api
fixed conflicts merging master