Moved core apis to nicknack-core module